import http from '../http'

// 渲染数据列表
export const dataListApi=(limit,size)=>http({
    url: "/storehouseIn/selectInStore",
    method:"post",
    params:{limit,size}
})

// 条件搜索渲染数据列表
export const searchDataListApi = (depot,from,page,size,state,to,vendor) => http({
    url:"/storehouseIn/selectByDateIn",
    method:'post',
    params:{depot,from,page,size,state,to,vendor}
})
// 下拉框渲染
export const downApi = () => http({
    url:"/storehouseIn/inDropDownlist",
    method:'post',
})

// 排序方式
export const orderApi = (order) => http({
    url:"/",
    method:'post',
    params:{order}
})

// 删除数据列表
export const deleteListApi=(id)=>http({
    url:"/storehouseIn/deleteById",
    method:"post",
    params:{
        id
    }
})

// 审批
export const approveApi=(comments,id)=>http({
    url:"/storehouseIn/checkIn",
    method:"post",
    params:{
        comments,id
    }
})

// 预览和编辑数据渲染
export const getDataApi=(orderId)=>http({
    url:"/storehouseIn/selectByGoodsXq",
    method:"post",
    params:{
        orderId
    }
})

// 导出
export const exportApi = () => http({
    url:"/storehouseIn/inlist",
    method:"get",
    responseType:'blob'
})




